<?php

$content = $_GET['content'];
?>

<div id="jcart-thickbox">

<?php
switch($content)
	{
	case 'paypal':
?>

	<h3>PayPal Setup</h3>

	<p>Enter your secure merchant ID to enable PayPal integration. You&rsquo;ll find this under <strong>My Account > Profile</strong> when logged into PayPal.</p>

	<p>Your PayPal profile must also use the following settings:</p>

	<ul>
		<li><strong>PayPal Account Optional</strong> is turned on</li>
		<li><strong>Shipping Calculations</strong> have been set up</li>
		<li><strong>Auto Return</strong> is turned off</li>
	</ul>

	<p><a href="https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&amp;content_ID=developer/e_howto_html_ProfileAndTools">Visit PayPal for more info on profile settings.</a></p>

	<p>If you&rsquo;d like to use your own checkout script or payment processor, you can edit the source of <code>jcart-gateway.php</code> to meet your needs.</p>

<?php
		break;
	case 'checkout':
?>

	<h3>Checkout Page</h3>

	<p>Enter the URL of your checkout page.</p>

	<p>This can be any WordPress page that uses the <strong>checkout.php</strong> template included with jCart.</p>

<?php
		break;
	case 'sample_form':
?>

	<h3 style="margin-bottom:30px;">Sample Add-to-Cart Form</h3>

<pre>
&lt;form method="post" action="" class="jcart"&gt;
  &lt;fieldset&gt;
    &lt;input type="hidden" name="my-item-id" value="1" /&gt;
    &lt;input type="hidden" name="my-item-name" value="Soccer Ball" /&gt;
    &lt;input type="hidden" name="my-item-price" value="25.00" /&gt;

    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;Soccer Ball&lt;/strong&gt;&lt;/li&gt;
      &lt;li&gt;Price: $25.00&lt;/li&gt;
      &lt;li&gt;
        &lt;label&gt;Qty: &lt;input type="text" name="my-item-qty" value="1" size="3" /&gt;&lt;/label&gt;
      &lt;/li&gt;
    &lt;/ul&gt;

    &lt;input type="submit" name="my-add-button" value="add to cart" class="button" /&gt;
  &lt;/fieldset&gt;
&lt;/form&gt;
</pre>


<?php
		break;
	case 'image_button':
?>

	<h3>Using an Image Button</h3>

	<p>If your item form uses an <code>&lt;input type="image" /&gt;</code> for the add-to-cart button, you must append <strong>_x</strong> to the value of the input&rsquo;s name attribute.</p>

	<p>For example, if your button code looks like this:</p>

	<p style="padding-left:25px;"><code>&lt;input type="image" name="my-add-button" /&gt;</code></p>

	<p>Enter <strong>my-add-button_x</strong> for the add-to-cart option.</p>

	<p><a href="http://php.net/manual/en/faq.html.php#faq.html.form-image">Visit the PHP website for more info on image buttons.</a></p>
<?php
		break;
	case 'encoding':
?>

	<h3>Using Special or Accented Characters</h3>

	<p>There are two requirements to use special or accented characters in your item name fields:</p>

	<ol>
		<li>Your WordPress installation must use UTF-8 character encoding. This option can be found under <strong>Settings > Reading</strong> in your WordPress admin.</li>
		<li>You must use the apppropriate HTML character entity in place of the literal character.</li>
	</ol>

	<p><a href="http://www.evotech.net/blog/2007/08/first-5800-numeric-html-character-entities/">Visit this page for a good list of HTML character entities.</a></p>

<?php
		break;
	}

?>


</div>

